using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.BGM
{
	[Table("bgm_project_manager"), DataContract]
    public class ProjectManager
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BgmProjMngId", ResourceType = typeof(Resources.ProjectManagerResource))]
        [Column("bgm_proj_mng_seq", TypeName="int")]
        public int ProjMngId { get; set; }

        [ForeignKey("Project")]
		[DataMember, Display(Name = "BgmProjId", ResourceType = typeof(Resources.ProjectManagerResource))]
		[Column("bgm_proj_seq", TypeName="int")]
        public Nullable<int> ProjId { get; set; }

        [ForeignKey("Employee")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.ProjectManagerResource))]
		[Column("emp_seq", TypeName="int")]
        public Nullable<int> EmpId { get; set; }

        [DataMember]
        public virtual Project Project { get; set; }

        [DataMember]
        public virtual HRM.Employee Employee { get; set; }

    }
}